Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@govuk-react/link
Advanced tools
import Link from '@govuk-react/link';
Simple
<Link href="/some/page">Example</Link>
It is possible to use this component to style a link from react-router, or reach-router as follows:
import { Link as RouterLink } from 'react-router-dom';
<Link as={RouterLink} to="destination">Router example</Link>
NB if no link destination is set then the link styling will not be applied
Prop | Required | Default | Type | Description |
---|---|---|---|---|
children | true | `````` | node | link contents |
muted | false | bool | show link in a "muted" (grey) style | |
noVisitedState | false | bool | ensure there is no "visited" style | |
textColour | false | bool | ensure link is shown in plain text colour |
FAQs
govuk-react Link component.
We found that @govuk-react/link demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.